home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c-part1 / 7030 < prev    next >
Encoding:
Text File  |  1996-08-05  |  884 b   |  25 lines

  1. Path: nntp.coast.net!torn!nott!cunews!alpha01!ug950174
  2. From: ug950174@scs.carleton.ca (Carl Hume)
  3. Newsgroups: comp.lang.c
  4. Subject: Re: How to list files in a directory (like "dir" in msdos or "ls" unix)
  5. Date: 17 Feb 1996 17:15:43 GMT
  6. Organization: School Of Computer Science, Carleton University, Canada
  7. Message-ID: <4g52fv$5i3@bertrand.carleton.ca>
  8. References: <4fqi8j$r9o@mn5.swip.net>
  9. NNTP-Posting-Host: alpha01.scs.carleton.ca
  10. X-Newsreader: TIN [version 1.2 PL2]
  11.  
  12. Simon ThalΘn (m-15275@mailbox.swipnet.se) wrote:
  13. : hello
  14.  
  15. : I would like list files in a directory (i┤m making a filemanager).
  16. : Like "dir" or something like that. I have Bcc 4,02
  17.  
  18.     An easy way would be to use the command system("command") under 
  19. <stdlib.h>.  Unfortunately, this would limit portability to one system 
  20. (dos, unix etc) so it may not be feasable, depending on the demands of 
  21. your program.
  22.  
  23. : Tanks!
  24.  
  25.